/**
 * 排课管理
 */

import request from "@/utils/request.js"

// 获取排课列表
export function getCourseSchedulingListApi(params) {
  return request({
    url: '/edu/basicManagement/scheduleCourse/list',
    method: 'POST',
    params
  })
}


// 获取课表列表
export function getCourseListApi(params) {
  return request({
    url: '/edu/basicManagement/scheduleCourseDetail/list',
    method: 'POST',
    params
  })
}

// 获取课表列表
export function getCourseListDetailApi(params) {
  return request({
    url: '/edu/basicManagement/scheduleCourseDetail/schedule-course-detail',
    method: 'POST',
    params
  })
}

// 获取所属专业列表
export function getMajorListApi(params) {
  return request({
    url: '/edu/major/majorlistOfDrop-down',
    method: 'POST',
    params
  })
}

// 新增
export function addCourseSchedulingListApi(params) {
  return request({
    url: '/edu/basicManagement/scheduleCourse/add',
    method: 'POST',
    params
  })
}

// 新增课表
export function addCourseListApi(params) {
  return request({
    url: '/edu/basicManagement/scheduleCourseDetail/schedule-course-save',
    method: 'POST',
    params
  })
}

// 编辑
export function editCourseSchedulingListApi(params) {
  return request({
    url: '/edu/basicManagement/scheduleCourse/edit',
    method: 'POST',
    params
  })
}

// 删除
export function delCourseSchedulingApi(params) {
  return request({
    url: "/edu/basicManagement/scheduleCourse/remove",
    method: 'POST',
    params
  })
}

// 导出排课数据
export function exportApi() {
  return request({
    url: '/edu/basicManagement/scheduleCourse/export',
    responseType: 'blob',
    method: 'POST',
  })
}

